/*
 * Control.fx
 *
 * Created on 06-may-2009, 17:37:52
 */

package webooksfx.controller;
import java.lang.Exception;
import webooksfx.controller.Control;
import webooksfx.model.parser.WebooksRequest;
import webooksfx.view.View;

/**
 * @author Administrador
 */

abstract public class Control {
	public var view: View = null;

	package var req : WebooksRequest = WebooksRequest {
	}
    public function initControl (c1: Control) : Void {
	}
    public function initControl (c1: Control, c2: Control) : Void {
	}

    public function resetRequest () : WebooksRequest {
        return this.req = WebooksRequest {};
    }

    public function showView () : Void {
		view.show();
	}
    public function hideView () : Void {
		view.hide();
	}
	public function showException (ex: Exception) : Void {
		view.showException (ex.getMessage());
	}
}